import Vue from "vue"
import VueRouter from 'vue-router'

Vue.use(VueRouter)

import home from './components/tabbar/Home.vue'
import search from './components/tabbar/Search.vue'
import member from './components/tabbar/Member.vue'
import shopCar from './components/tabbar/ShopCar.vue'


// 3. 创建路由对象
var router = new VueRouter({
  routes: [
    {path:'/', redirect:'./home'},
    {path:'/home', component:home},
    {path:'/search', component:search},
    {path:'/member', component:member},
    {path:'/shopCar', component:shopCar}
  ],
  linkActiveClass:'mui-active',
})

// 把路由对象暴露出去
export default router